import Mock from 'mockjs';
import { mocklogin } from './mocklogin';
import { mockuser } from './mockuser';
import { mockaddDrug } from './pharmacy/mockaddDrug';
import { mockUpdateDrug } from './pharmacy/mockUpdateDrug';
import { mockdeleteDrug } from './pharmacy/mockdeleteDrug';
import { mockdispenseDrug } from './pharmacy/mockdispenseDrug';
import { mockDrug } from './pharmacy/mockDrug';
import { mockPrescriptionItemForm } from './pharmacy/mockPrescriptionItemForm';
import { mockrepercussionDrug } from './pharmacy/mockrepercussionDrug';
import { mockRepercussionList } from './pharmacy/mockRepercussionList';
import { mockupdateUser } from './mockupdateUser'
import { mockupdatePassWord } from './mockupdatePassWord';
import { mockGetCodeNameList } from './system/mockGetCodeNameList';

// 拦截规则
// const login = Mock.mock(RegExp('.*'+'/api/system/login'+'.*'), 'post', mocklogin)　　
// const updateUserInfo =Mock.mock(RegExp('.*'+'/api/system/updateUserInfo'+'.*'),'post',mockupdateUser)
// const updatePassWord =Mock.mock(RegExp('.*'+'/api/system/updatePassWord'+'.*'),'post',mockupdatePassWord)
// const user= Mock.mock(RegExp('.*'+'/api/system/getUser'+'.*'), 'get', mockuser)　　
// const addDrug=Mock.mock(RegExp('.*'+'/api/pharmacy/addDrug'+'.*'), 'post', mockaddDrug)　
// const updateDrug=Mock.mock(RegExp('.*'+'/api/pharmacy/updateDrug'+'.*'), 'post', mockUpdateDrug)　
// const deleteDrug=Mock.mock(RegExp('.*'+'/api/pharmacy/deleteDrug'+'.*'), 'get', mockdeleteDrug)　　
// const dispenseDrug=Mock.mock(RegExp('.*'+'/api/pharmacy/dispenseDrug'+'.*'), 'post', mockdispenseDrug)　　
// const drug=Mock.mock(RegExp('.*'+'/api/pharmacy/getDrugList'+'.*'), 'post', mockDrug)　　
// const PrescriptionItemForm=Mock.mock(RegExp('.*'+'/api/pharmacy/getPrescriptionItemFormList'+'.*'), 'post', mockPrescriptionItemForm)　　
// const repercussionDrug=Mock.mock(RegExp('.*'+'/api/pharmacy/repercussionDrug'+'.*'), 'get', mockrepercussionDrug)　　
// const RepercussionList=Mock.mock(RegExp('.*'+'/api/pharmacy/getRepercussionList'+'.*'), 'post', mockRepercussionList)　　
// const GetCodeNameList=Mock.mock(RegExp('.*'+'/api/system/getCodeNameList'+'.*'), 'get', mockGetCodeNameList)　　




